package Test2;

public class ShapeTest {
    public static void main(String[] args) {
        Retanle retanle1 = new Retanle(2,3);
        Retanle retanle2 = new Retanle(3,6);
        Triangle triangle1 = new Triangle(3,4,5);
        Triangle triangle2 = new Triangle(1,3,6);
        Shape[] shapes = {retanle1,retanle2,triangle1,triangle2};
        for (int i = 0; i < shapes.length; i++) {
            System.out.println(shapes[i]);
        }
    }
}
